package com.hue.service.impl;

import com.hue.entity.Goods;
import com.hue.entity.vo.GoodsVo;
import com.hue.mapper.GoodsMapper;
import com.hue.service.GoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 姚凤桥
 * @since 2021-07-16
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {

    @Override
    public List<GoodsVo> getAllGoodsVo() {
        return baseMapper.getAllGoodsVo();
    }

    @Override
    public GoodsVo getGoodsById(Integer id) {
        return baseMapper.getGoodsById(id);
    }
}
